import {NgModule, ErrorHandler} from "@angular/core";
import {IonicApp, IonicModule} from "ionic-angular";
import {MyApp} from "./app.component";
import {LoginPage} from "../pages/Login/LoginPage";
import {RequestService} from "../core/RequestService";
import {ServerInfoService} from "../core/ServerInfoService";
import {UserService} from "../core/UserService";
import {RegisterPage} from "../pages/Register/RegisterPage";
import {ExceptionHandler} from "../ExceptionHandler/ExceptionHandler";
import {EvaluationPage} from "../pages/Evaluation/EvaluationPage";
import {NewPostPage} from "../pages/NewPost/NewPostPage";
import {PostCard} from "../pages/Post/PostCard";

@NgModule({
    declarations: [
        MyApp,
        LoginPage,
        RegisterPage,
        EvaluationPage,
        NewPostPage,
        PostCard,
    ],
    imports: [
        IonicModule.forRoot(MyApp)
    ],
    bootstrap: [IonicApp],
    entryComponents: [
        MyApp,
        LoginPage,
        RegisterPage,
        EvaluationPage,
        NewPostPage,
        PostCard,
    ],
    providers: [{provide: ErrorHandler, useClass: ExceptionHandler},
        ServerInfoService, UserService,
        RequestService]
})
export class AppModule {
}
